package org.example.designpattern.state;

public class Test {
    public static void main(String[] args) {

        // 初始状态为关灯
        LightContext lightContext = new LightContext(new LightOffState());
        lightContext.off();
        lightContext.on();


    }
}
